package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.ChtjBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface ChtjService extends BaseService<ChtjBean> {

	ChtjBean getChtjBeanById(String id) throws Exception;
	
	void removeChtjBeanById(String id) throws Exception;
	
	void removeChtjBeanByIds(String ids) throws Exception;
	
	ChtjBean saveChtjBean(ChtjBean crm) throws Exception;
	
	ChtjBean updateChtjBean(ChtjBean crm) throws Exception;
	
	Page<ChtjBean>  findChtjBeanByCond(ChtjBean bean,
			Page<ChtjBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveChtjBeanExt(String sql) throws Exception;

	String findChtjBeanExtCreate(String tableName) throws Exception;

	String findChtjBeanExtEdit(String tableName, String id)
			throws Exception;

	String findChtjBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasChtjBeanExtData(String tableName, String id)
			throws Exception;
}